package com.etc.service;

import com.etc.entity.User;
import com.etc.util.PageData;

public interface UserService {
	boolean deleteByPrimaryKey(Integer userid);

	boolean insert(User record);

	boolean insertSelective(User record);

	User selectByPrimaryKey(Integer userid);

	boolean updateByPrimaryKeySelective(User record);

	boolean updateByPrimaryKey(User record);

	// 分页加模糊查询
	PageData<User> selectByPage(int page, int limit, String content);
	//管理员登录校验
	boolean selectByUser(User user);
	//根据用户名校验
	boolean selectByUsername(String  username);
	//普通用户登录校验
	User checkByUser(User user);
	//用户注册
	boolean insertuser(User user);
	
	boolean updateStauts (int userid);
}
